package com.lzh.chatnote.user.controller;


import com.lzh.chatnote.common.domain.response.ApiResult;
import com.lzh.chatnote.common.domian.vo.request.CursorPageBaseReq;
import com.lzh.chatnote.common.domian.vo.response.CursorPageBaseResp;
import com.lzh.chatnote.user.domain.vo.response.user.UserFriendResp;
import com.lzh.chatnote.user.service.UserFriendService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lzh
 * @since 2025-09-29
 */
@Api(tags = "用户好友控制器")
@Controller
@RequestMapping("/userFriend")
public class UserFriendController {

    @Resource
    private UserFriendService userFriendService;

    /**
     * 获取用户好友游标分页列表
     */
    @ApiOperation("获取用户好友游标分页列表")
    @GetMapping("/queryCursorPage")
    public ApiResult<CursorPageBaseResp<UserFriendResp>> queryCursorPage(@Valid CursorPageBaseReq req){
       return ApiResult.success(userFriendService.queryCursorPage(req));
    }

}

